package cn.item.buckle.business.pojo;

import java.io.Serializable;
import java.util.Set;

public class MonitorCameraInfo implements Serializable {
	private static final long serialVersionUID = -1143014090539043580L;

	/**
	 * 卡扣ID
	 */
	private String monitorId;

	/**
	 * 监控记录的摄像头集合或基本关系绑定的摄像头集合
	 */
	private Set<String> camearIds;

	/**
	 * 摄像头个数，就是上集合的大小
	 */
	private int cameraCount;

	/**
	 * 卡扣监控的车辆数
	 */
	private int carCount;

	public MonitorCameraInfo() {
	}

	public MonitorCameraInfo(String monitorId, Set<String> camearIds, int cameraCount) {
		this.monitorId = monitorId;
		this.camearIds = camearIds;
		this.cameraCount = cameraCount;
	}

	public MonitorCameraInfo(String monitorId, Set<String> camearIds, int cameraCount, int carCount) {
		this.monitorId = monitorId;
		this.camearIds = camearIds;
		this.cameraCount = cameraCount;
		this.carCount = carCount;
	}

	public String getMonitorId() {
		return monitorId;
	}

	public void setMonitorId(String monitorId) {
		this.monitorId = monitorId;
	}

	public Set<String> getCamearIds() {
		return camearIds;
	}

	public void setCamearIds(Set<String> camearIds) {
		this.camearIds = camearIds;
	}

	public void addCamearIds(Set<String> camearIds) {
		if (this.camearIds == null || this.camearIds.isEmpty()) {
			this.camearIds = camearIds;
		} else {
			this.camearIds.addAll(camearIds);
		}
	}

	public int getCameraCount() {
		return cameraCount;
	}

	public void setCameraCount(int cameraCount) {
		this.cameraCount = cameraCount;
	}

	public void addCameraCount(int cameraCount) {
		this.cameraCount += cameraCount;
	}

	public int getCarCount() {
		return carCount;
	}

	public void setCarCount(int carCount) {
		this.carCount = carCount;
	}

	public void addCarCount(int carCount) {
		this.carCount += carCount;
	}
}
